//
//  EJSOrderGoodsTableViewCell.m
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2018/1/3.
//  Copyright © 2018年 lifayu. All rights reserved.
//

#import "EJSOrderGoodsTableViewCell.h"
#import "EJSOrderModel.h"

@implementation EJSOrderGoodsTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setGoodsModel:(EJSOrderGoodsModel *)goodsModel{
    self.goodsNameLabel.text = [NSString stringWithFormat:@"%@  %@",goodsModel.spuName,goodsModel.specInfo];
    [self.goodsImageView setImageWithUrl:goodsModel.cover];
    self.goodsPriceLabel.text = [NSString stringWithFormat:@"€%@",goodsModel.amount];
    self.goodsNumLabel.text = [NSString stringWithFormat:@"x%@",goodsModel.num];
}

@end
